package com.wash.shoes.domain.dto;

import com.ruoyi.common.core.domain.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@ApiModel(value = "订单确认入库请求对象")
public class OrderConfimCheckInDto extends BaseModel {
    //状态 1,确认 2取消
    public static final String ACTION_CONFIRM = "1";
    public static final String ACTION_CANCEL = "2";

    @ApiModelProperty(value = "订单的Id")
    @NotNull(message = "orderId不能为空")
    private String orderId;
    @ApiModelProperty(value = "状态 1,确认 2取消")
    @Pattern(regexp = "^[1-2]$", message = "action只能是1或者2")
    @NotNull(message = "action不能为空")
    private String action;
}
